#ifndef KERNELS_H
#define KERNELS_H

#include <QWidget>
#include "paint.h"
#include "ui_kernels.h"

class Kernels : public QWidget
{
	Q_OBJECT

public:
	Kernels(QWidget *parent = 0);
        ~Kernels();
        Paint *paint;
        QObject *v;
        void filter(int type);
	void convolution(int mat[7][7], int t,bool sherp=false);

private:
        Ui::KernelsClass ui;

private slots:
	void on_boxfilter7_clicked();
	void on_boxfilter5_clicked();
        void on_laplace3_clicked();
        void on_laplace5_clicked();
        void on_laplace7_clicked();
	void on_boxfilter3_clicked();
	void on_aceptar3_clicked();
	void on_aceptar5_clicked();
	void on_aceptar7_clicked();
	void on_gauss7_clicked();
	void on_gauss5_clicked();
	void on_gauss3_clicked();
	void on_prewitt3y_clicked();
        void on_prewitt3x_clicked();
};

#endif // KERNELS_H
